package com.ruoyi.framework.killbill;

import com.google.common.eventbus.AllowConcurrentEvents;
import com.google.common.eventbus.Subscribe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@EventBusRegister
@Component
public class DemoQueueHandler {

    private static final Logger log = LoggerFactory.getLogger(DemoQueueHandler.class);

    public DemoQueueHandler() {
    }

    @AllowConcurrentEvents
    @Subscribe
    public void processEvent(final DemoEvent event) {
        log.info("第一个处理器= " + event.getLeaveId());

        log.info("DB_Queue发送完毕");
    }
}
